package me.hellp.helloworld.design.flyweight;

public class Student implements FlyWeight{
	private String name;
	
	private Integer id;

	public Student(Integer id, String name){
		this.id = id;
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public void show() {
		System.out.println("当前的学生ID = " + this.id + " 名字：" + this.name);
	}
}
